//
//  NewFeatureViewController.m
//  TravelFollowYourHeart
//
//  Created by ENERGY on 2018/1/24.
//  Copyright © 2018年 Lwx. All rights reserved.
//

#import "NewFeatureViewController.h"
#import "AppTabBarController.h"
@interface NewFeatureViewController ()

@end

@implementation NewFeatureViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    int btnW = 80;
    int btnX = (SCREEN_WIDTH - 80)/2;
    int btnH = 40;
    UIButton * startBtn = [[UIButton alloc] initWithFrame:CGRectMake(btnX, SCREEN_HEIGHT - btnH, btnW, btnH)];
    [self.view addSubview:startBtn];
    [startBtn addTarget:self action:@selector(startBtnClick) forControlEvents:UIControlEventTouchUpInside];
    startBtn.backgroundColor = [UIColor redColor];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)startBtnClick{
    AppTabBarController *tabBarVC = [[AppTabBarController alloc]init];
    [[UIApplication sharedApplication] delegate].window.rootViewController = tabBarVC;
    [[[UIApplication sharedApplication] delegate].window makeKeyAndVisible];
}

@end
